package com.ljh.SimpleTradingSystem.mybatis.entity;

import lombok.Data;

@Data
public class Auction {
    private int id;           //拍卖记录id
    private int goodsId;      //商品id
    private String userName;  //竞价拍卖的用户名
    private double price;     //竞拍价格
    private String time;      //竞价时间

    public Auction() {
    }

    public Auction(int goodsId, String userName, double price, String time) {
        this.goodsId = goodsId;
        this.userName = userName;
        this.price = price;
        this.time = time;
    }
}
